package indi.woniu.service;

import com.github.pagehelper.PageInfo;
import indi.woniu.entity.Pool;
import indi.woniu.entity.ResponseEntity;

import java.util.List;

public interface PoolService {
    //分页查询
    ResponseEntity findAll(int page, int limit);

    //关键字查询
    ResponseEntity findByName(String name);

    //子题库查询
    ResponseEntity findByType(int page,int limit,Pool pool);

    //创建题库
    ResponseEntity  fMovePool(Pool pool);

    //修改题库
    ResponseEntity updatePool(Pool pool);
    //删除题库
    ResponseEntity deletePoolById(int id);
//查询所有父库
    ResponseEntity findFpool();
//查询父库下子库
    ResponseEntity findSpool(String poolName);


    ResponseEntity findSpools();

    ResponseEntity findSFPool(String name);

    ResponseEntity findFidPool(Pool pool);

    ResponseEntity insertFpool(Pool pool);

    ResponseEntity insertSpool(Pool pool);

    ResponseEntity findSonPoolName(Pool pool);

    ResponseEntity findAllAll(int page,int limit);

    ResponseEntity findAllAllByName(Pool pool);

    ResponseEntity findByFidAndSunName(Pool pool);
}
